package org.ccay.download;

import java.util.Map;

import org.ccay.core.exception.ApplicationException;
import org.ccay.core.io.VFSFileObject;

/**
 * 下载支持接口	
 */
public interface IDownloadSupport {
	
	/**
	 * 验证下载权限
	 * @param map
	 * @return
	 */
	boolean validatePrivilege(Map<String,String> map) throws ApplicationException;
	
	/** 
	 * 获取VFS文件
	 * @param map
	 * @return
	 */
	VFSFileObject getFileInfo(Map<String,String> map) throws ApplicationException;
	
	
}